package com.example.springboot.utils;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.AppenderBase;

/**
 * @Author:ChenZhangKun
 * @Date: 2022/9/6 14:11
 */
public class InfoAlarmUtil extends AppenderBase<ILoggingEvent> {
    @Override
    protected void append(ILoggingEvent iLoggingEvent) {
        //
        System.out.println("发送短信了");
        RonglianSms.sendSms(iLoggingEvent);
    }
}
